package team.hyznrj.studentsys.service;

import team.hyznrj.studentsys.entity.AcademicYears;

import java.util.List;

/**
 * @author ReMidDream
 * @date 2018-04-23 15:35
 **/
public interface AcademicYearsService {

    /**
     *  查询所有学年
     * @return List<AcademicYears>
     */
    List<AcademicYears> findAll();

    /**
     * 更新/插入学年
     * @param academicYears 要插入的学年实体
     * @return 插入后的学年实体类
     */
    AcademicYears insertOrUpdateAcademicYears(AcademicYears academicYears);

    /**
     * 根据学年id 删除学年
     * @param academicYearId  学年id
     */
    void deleteAcademicYears(Integer academicYearId);

}
